<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>短信设置</title>
<include file="Public/header" />
<script type="text/javascript" src="__PUBLIC__/Js/jquery.validate.js"></script>
<script type="text/javascript">
$(function(){
    $("#myform").validate({
        rules: {
                keyword : {
                    required: true, 
                },
               
                password : {
                    required: true,

                },
            
        },
        messages: {
                 
			    keyword : {
                    required: '序列号不能为空！',
                },
	 
              
                password : {
                    required : '密码不能为空！',
                },
       },
    })
})

</script>
</head>


<body>
<div>
   
   
        <div class="list_vmall_man">
        	<div class="list_vmall_le" >
        
              <include file="./Apps/BoxAdmin/View/Public/adminMenu.html" />
               
            </div>
            <div class="list_vmall_rig">
            	<ul class="breadcrumb">
                    <li><a href="<{:U('setSMS')}>">短信设置管理</a> </li>
                    <li>短信设置</li>
                </ul>
                <div class="list_vmall_bort">
                    <form id="myform" method="post" action="<{:U('setSMS')}>">
                    	<div class="vmall_padi">
                           
                           
                            <div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">序列号：</label>
                                <div class="vmaal_rols">
                                    <input type="text" class="vmaal_sinw1 input_a1 int_wod" id="keyword" name="keyword" value="<{$data['keyword']}>" />  &nbsp;&nbsp;序列号,请通过后台管理销售人员获取
                                </div>
                            </div>
							<div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">密码：</label>
                                <div class="vmaal_rols">
                            
                                    <input type="password" class="vmaal_sinw1 input_a1 int_wod" id="password" name="password" value="<{$data['password']}>"> &nbsp;&nbsp;密码,请通过后台管理销售人员获取
                                
                                </div>
                            </div>
							<div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">测试手机号：</label>
                                <div class="vmaal_rols">
                                    <input type="text" class="vmaal_sinw1 input_a1 int_wod" id="ceshiurl" name="ceshiurl" value="<{$data.ceshiurl}>">&nbsp;&nbsp;&nbsp;&nbsp;<a class="v_mall_q_1" onclick="testEmail()"  style="border: 0px none;height: 28px;padding-top: 0px;cursor: pointer;display: inline-block;float: right;">测试</a>
                            
                                </div>
                            </div>
            
                            <div class="vmall_cle">
                                <div class="vmaal_rols">
                                    <button class="v_mall_q_1" style="border:0; height:32px; padding-top:0; cursor:pointer;" type="submit">确&nbsp;&nbsp;定</button>
                                </div>
                            </div>

                         </div>
                     </form> 
					  
                </div>
                
            </div>
            
            
         
        </div>
        
 
    
    
    
  
</div>
<script>
 function testEmail(){
  var ceshiurl=$("#ceshiurl").val();
  $.get("<{:U('smsTest')}>",{tel:ceshiurl},function(){
   alert('已发送，如果已收到短信，说明您配置成功了');
  });
 }
</script>


</body>
</html>
